home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Technology Demos and Tools.iso / java / demo / lr / shiny.wrl < prev    next >
Encoding:
Text File  |  1996-05-17  |  1.5 KB  |  80 lines

  1. #VRML V1.0 ascii
  2.  
  3. # shiny.wrl -- 
  4. #
  5. # Not properly commented.
  6.  
  7. Separator {
  8.    DEF BackgroundColor Info { string "0.5 0.5 0.5" }
  9.    DEF Viewer Info { string "walk" }
  10.    DEF ViewerSpeed Info { string "3" }
  11.  
  12.    DirectionalLight { direction 0 0 -1 }
  13.  
  14.    PerspectiveCamera {
  15.       position 0 0 8
  16.       orientation 0 1 0 0
  17.    }
  18.  
  19.    Texture2 { filename "images/reflect/goldroom.jpg" }
  20.    Material
  21.    {
  22.            diffuseColor 1 1 1
  23.    }
  24.    TextureCoordinateGenerator {
  25.     mapTypeS ENVIRONMENT
  26.     mapTypeT ENVIRONMENT
  27.     linearMapS 1 0 0
  28.     linearMapT 0 1 0
  29.     }
  30.  
  31.    Separator {
  32. #        Rotor { rotation 1 0 0 1 speed 0.3 }
  33. #    Rotor { rotation 0 0 1 2 speed 0.4 }
  34.  
  35.     # This object sets the radialSubdivision parameter so that is
  36.     #   appears faceted rather than rounded
  37.         SurfaceOfRevolution {
  38.         radialSubdivision 20
  39.         profile [ 0 1, 1 0.5, 1 0.25, 0.8 0, 1 -0.25, 1 -0.5, 0 -1 ]
  40.     }
  41.    }
  42.  
  43.    Translation { translation -3 0 0 }
  44.  
  45.    Separator {      
  46. #        Rotor { rotation 1 0 0 0.5 speed 0.3 }
  47. #    Rotor { rotation 0 0 1 0.5 speed 0.4 }
  48.        SurfaceOfRevolution {
  49.         profile [ 0 0.5,
  50.               0.5 0.5,
  51.               0.5 1,
  52.                 1 1,
  53.               0.9 0.81,
  54.               0.8 0.64,
  55.               0.7 0.49,
  56.               0.6 0.36,    
  57.               0.5 0.25,
  58.               0.4 0.16,
  59.               0.3 0.09,
  60.               0.2 0.04,
  61.               0.1 0.01,
  62.               0 0 ]
  63.        }
  64.  
  65.    }
  66.  
  67.    Translation { translation 6 0 0 }
  68.  
  69.    Separator {
  70. #    Rotor { rotation 0 0 1 2.5 speed 0.5 }
  71. #        Rotor { rotation 1 0 0 1.5 speed 0.2 }
  72.  
  73.        SurfaceOfRevolution {
  74.         profile [ 0.7 0.3, 1.3 0, 0.7 -0.3 ]
  75.         close TRUE
  76.        }
  77.    }
  78.    
  79. }
  80.